{% extends 'base.html.twig' %}

{% block body %}
<ul>
    {% for field in fields %}
        <li>
			{{ labels[loop.index0]|trans }}
			:
            {% if attribute(data, field) is instanceof('DateTime') %}
				{{ attribute(data, field) | date }}
            {% else %}
                {{ attribute(data, field) }}
			{% endif %}
		</li>
    {% endfor %}
</ul>
{% endblock %}